<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2><if condition="ACTION_NAME eq 'addaction'">新增<else/>员工</if>离职</h2>
	</div>
	<!-- 表单 -->
	<form id="form" action="{:U()}" method="post" class="form-horizontal">
		<div class="form-item cf">
			<label class="item-label">员工姓名<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="nickname" value="{$nickname}">
			</div>
		</div>
		
		<div class="form-item cf">
			<label class="item-label">离职时间<span class="check-tips">（输入员工离职时间，格式Y-m-d）</span></label>
			<div class="controls">
				<div class="row">            							
					<input type="text" id="time-start" name="resign_time" class="text input-4x" value="" placeholder="起始时间" />
					<span class="add-on"><i class="icon-th"></i></span>					
				</div>
			</div>
		</div>
		<div class="form-item cf">
			<label class="item-label">离职说明<span class="check-tips">（可以为空）</span></label>
			<div class="controls">
				<label class="textarea input-large"><textarea name="remark">{$rule}</textarea></label>
			</div>
		</div>

		<div class="form-item">
			<input type="hidden" name="uid" value="{$uid}"/>
			<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>
	</form>
</block>

<block name="script">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript" charset="utf-8">
	$(function(){
		//导航高亮
		$('.side-sub-menu').find('a[href="{:U('User/resignWork')}"]').closest('li').addClass('current');
		$('#time-start').datetimepicker({
			format: 'yyyy-mm-dd',
			language:"zh-CN",
			minView:2,
			autoclose:true
		});

		$('#datetimepicker').datetimepicker({
		   format: 'yyyy-mm-dd',
			language:"zh-CN",
			minView:2,
			autoclose:true,
			pickerPosition:'bottom-left'
		});
		
	})
</script>
</block>
